package hos.http;

import java.io.IOException;

/**
 * <p>Title: HiCall </p>
 * <p>Description:  </p>
 * <p>Company: www.mapuni.com </p>
 *
 * @author : 蔡俊峰
 * @version : 1.0
 * @date : 2023-02-23 14:40
 */
public interface HttpCall<T> extends Cloneable {
    T execute() throws IOException;

    void enqueue(HttpCallback<T> callback);

    interface Factory {
        <T> HttpCall<T> newCall(HttpRequest<?> request);
    }

}
